<%-- 
    Document   : novo
    Created on : 08/11/2008, 18:22:49
    Author     : Alan Almeida
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>  
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>

<html>
<head>
    <title>alterar livro</title>
    <link rel="stylesheet" type="text/css" href="../css/estilo.css">
</head>
<body>
    <f:view>
        <div align="center">
        <h:form>
            <rich:panel style="width: 35%;" styleClass="fonte">
            <f:facet name="header">
                <h:outputLabel value="Alterar livro" />
            </f:facet>
            <h:panelGrid columns="2" styleClass="fonte">
                <h:outputText value="Código: " />
                <h:inputText id="codigo" value="#{livroBean.livroPojo.id}" size="5" readonly="true" styleClass="input" />
                
                <h:outputText value="Título: " />
                <h:inputText id="titulo" value="#{livroBean.livroPojo.titulo}" size="35" styleClass="input" />

            </h:panelGrid>
            <h:commandButton id="btnConfirmar" value="Confirmar" style="width: 15%;" action="#{livroBean.atualizar}" />
            <h:commandButton id="btnVoltar" value="Voltar" styleClass="fonte" style="width: 15%;" action="#{livroBean.gotoListaLivros}" />
            </rich:panel>
        </h:form>
        </div>
    </f:view>    
</body>
</html>

